﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
	mc:Ignorable="d"
	x:Class="K7.Order"
	x:Name="UserControl"
	d:DesignWidth="640" d:DesignHeight="480">

	<Grid x:Name="LayoutRoot" Background="#4C000000">
		<Grid.RowDefinitions>
			<RowDefinition Height="0.842*"/>
			<RowDefinition Height="0.158*"/>
		</Grid.RowDefinitions>
	    		<dg:DataGrid x:Name="dgItems" AutoGenerateColumns="False" Background="{x:Null}">
				<dg:DataGrid.Columns>
					<dg:DataGridTextColumn Header="Number" Binding="{Binding NumberOfItem}"/>
    				<dg:DataGridTemplateColumn Header="Image">
    					<dg:DataGridTemplateColumn.CellTemplate>
    						<DataTemplate>
    							<Grid>
    								<Image Source="{Binding Picture}" Width="64" Height="64" Stretch="UniformToFill"/>
    							</Grid>
    						</DataTemplate>
    					</dg:DataGridTemplateColumn.CellTemplate>
    				</dg:DataGridTemplateColumn>
    				<dg:DataGridTextColumn Header="Name" Binding="{Binding MenuItemName}"/>
    			</dg:DataGrid.Columns>
    		</dg:DataGrid>
		<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,0,8,8" Grid.Row="1" d:LayoutOverrides="Height">
			<StackPanel VerticalAlignment="Center">
				<TextBlock FontSize="16" Foreground="#FFFFDD00" Text="Order time:" TextAlignment="Center" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
				<TextBlock x:Name="TbOrderTime" FontSize="16" Foreground="#FFFFDD00" Text="12/12/2012" TextAlignment="Center" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
			</StackPanel>
			<TextBlock x:Name="tbOrderNumber" Margin="24,0,0,0" FontSize="48" FontWeight="Bold" Foreground="#FFFFDD00" Text="Order 101" TextAlignment="Center" TextWrapping="Wrap" d:LayoutOverrides="Height"/>
			<Button x:Name="btnDone" Margin="28,0,0,0" Width="184" Height="62" Content="Done!" FontFamily="Zegoe Caps" FontSize="26.667" Click="btnDone_Click"/>
		</StackPanel>
	</Grid>
</UserControl>